{% load staticfiles %}
<div class="container">
    <nav class="navbar navbar-default" role="navigation">
        <div>
            <ul class="nav navbar-nav" role="navigation">
                <li><a href="{% url 'zhuye:zhuye_index' %}">广告</a></li>
                <li><a href="{% url 'campaign_for:select' %}">竞选</a></li>
                <li><a href="{% url 'campaign_for:important' %}">我要竞选</a></li>
                <li><a href="plan">计划</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right" style="margin-right:10px">
                {% if username %}
                <li>
                    <a href="#">{{ username }}</a>
                </li>
                <li><a href="{% url 'myapp:logout' %}">退出</a></li>
                {% else %}
                <li>
                    <a href="{% url 'myapp:login' %}">登录</a>
                </li>
                {% endif %}
            </ul>
        </div>
    </nav>
</div>
<script src="{% static 'js/jquery.js' %}"></script>
<script src="{% static 'js/bootstrap.js' %}"></script>